<!DOCTYPE html>
<!--[if IE 8]><html class="ie ie8"> <![endif]-->
<!--[if IE 9]><html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!-->	<html> <!--<![endif]--><head>
   <meta charset="utf-8">
   <title>{$site_seo_title} {$site_name}</title>
   <meta name="keywords" content="{$site_seo_keywords}" />
   <meta name="description" content="{$site_seo_description}">
   {include file="public:head" /}
</head>

<style>
ul.cate_2 li a{padding:5px 10px }
</style>
<body class="home">
<div class="wrap">
   {include file="public:nav" /}
   <div id="main-cmf">
   
   
   
        <div class="breadcrumb-wrapper">
            <div class="container">
                <div class="row">
                    <div class="col-lg-6 col-md-6 col-xs-12 col-sm-6">
                        <h2 class="title">{$menu.menu_name}</h2>
                    </div>
                    <div class="col-lg-6 col-md-6 col-xs-12 col-sm-6">
                        <div class="breadcrumbs pull-right">
                            <ul>
                                <li>{:lang('current location')}:</li>
                                <li><a href="__ROOT__/">{:lang('home')}</a></li>
                                <li>{$menu.menu_name}</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        
        <div class="content">
        
         <div class="container index_goods" style="padding:20px 0 0 10px">
         
         	<ul class="nav nav-pills" >
            {foreach name="category" item="c"}
              <li role="presentation" {if condition="$c['id'] eq $cid or $c['id'] eq $parentid"}class="active"{/if}><a href="{:url("home/shop/index",["cid"=>$c["id"]])}">{$c["cate_name"]}</a></li>
            {/foreach}
            </ul>
             <!-- Tab panes -->
              <div class="tab-content">
              {foreach name="category" item="c"}
                <div role="tabpanel" class="tab-pane {if condition="$c['id'] eq $cid or $c['id'] eq $parentid"}active{/if}"  id="cate_{$key}">
                {notempty name="c['child']"}
                    <ul class="nav nav-pills cate_{$key}" style="margin-top:10px">
                    {foreach name="c['child']" key="kk" item="cc"}
                      <li role="presentation" {if condition="$cc['id'] eq $cid"}class="active"{/if}>
                      <a href="{:url("home/shop/index",["cid"=>$cc["id"]])}">{$cc["cate_name"]}</a>
                      </li>
                    {/foreach}  
                    </ul>
                {/notempty}
                </div>
              {/foreach} 
              </div>
            
            <div class="row" style="padding:10px">
               <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 d1">
                  
                   <div class="row">
                   
                 {foreach name="goods_list" item="g"}        
                      <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                        <div class="thumbnail  ">
                         <img data-src="holder.js/100%x200" alt="{$g["goods_title"]}" style="height: 200px;display: block;" src="{$g["thumb"]|default=''}" data-holder-rendered="true">
                          <div class="caption">
                          	<h4 style="height:20px; overflow:hidden"><a href="{:url("home/shop/show",["id"=>$g["id"]])}" target="_blank">{$g["goods_title"]}</a></h4>
                            <p>
                            <span><b>￥{if condition="empty($g['price_'.$groupid])"}{$g["price"]} {else/}{$g["price_".$groupid]} {/if}</b></span>
                            <a href="{:url("home/shop/show",["id"=>$g["id"]])}" target="_blank" class="btn btn-info" role="button">去看看</a>
                            </p>
                          </div>
                        </div>
                      </div>
 				 {/foreach}
                   
                   </div>
                   
                   <div class="row text-center" style="margin:20px 0"> 
                       <div class="page r">
                           {$pager}
                       </div>
                   </div>
               </div>
            </div>
         </div>
     </div>
           
           
           
           
           
        </div>
    </div>
    {include file="public:footer"/}
</div>
{include file="public:scripts"/}
<script language="javascript">
  $(function(){
      $(".menu a[href='{:url('home/shop/index')}']").attr('id','current');
  });
</script>
</body>
</html>